package com.qysxy.feign.service.user;

import com.qysxy.api.user.UserDto;
import com.qysxy.feign.config.FeignClientConfig;
import com.qysxy.feign.service.user.fallback.IUserServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by SuLong on 2018/4/17/017.
 */
@FeignClient(value = "ZUUL-GATEWAY", configuration = FeignClientConfig.class, fallbackFactory = IUserServiceFallbackFactory.class)
public interface IUserService {
    @RequestMapping("/user-proxy/home")
    public UserDto home();

    @RequestMapping("/user-proxy/order")
    public String order();

    @RequestMapping("/user-proxy/result")
    public String result();
}
